home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_teo_vectorrep.cog < prev    next >
Text File  |  1999-11-15  |  901b  |  48 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEO_VectorRep.cog
  4. #
  5. #
  6. # Reports the current player upvector.
  7. #
  8. # [SXC]
  9. #
  10. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  11. # ========================================================================================
  12.  
  13. symbols
  14.     message    startup        
  15.     message    pulse    
  16.  
  17.    float    pulserate
  18.    vector   lvec
  19.    vector   rvec
  20.    thing    player0
  21. end
  22.  
  23.  
  24. # ========================================================================================
  25.  
  26. code
  27.  
  28. startup:
  29.    SetPulse(pulserate);
  30.    return;
  31.  
  32. # ........................................................................................
  33.  
  34. pulse:
  35.    lvec = GetThingLVec(player0);
  36.    rvec = GetThingUVec(player0);
  37.    print("Uvec");
  38.    printflex(VectorZ(rvec));
  39.    //print("Yvec");
  40.    //printflex(VectorY(lvec));
  41.    //print("dot is");
  42.    //(VectorAdd(rvec,lvec));
  43.  
  44.    return;
  45.  
  46.    end
  47.  
  48.